package tjcu.archives.vo;

/**
 * @author cd
 * @version 1.0
 * @date 2022/4/16 23:07
 */
public enum SamEnumVO {

    ENTERPRISE_ADD_ERROR(666,"添加企业信息失败"),
    ENTERPRISE_DELETE_ERROR(667,"删除企业出现异常"),
    UPDATE_ERROR(668,"修改个人信息失败"),
    USERNAME_PASSWORD_ERROR(669,"用户名或密码错误!!"),
    UPDATE_PASSWORD_ERROR(700,"用户名或密码错误!!"),

    REQUEST_PARAMETER_ERROR(400,"请求参数异常！"),
    USER_HAS_EXPIRED(444,"用户已经失效！"),
    USER_ADD_ERROR(777,"添加用户信息失败！"),
    USER_SAVE_USER_ROLE_ERROR(778,"分配用户角色信息失败！"),
    ROLE_SAVE_ROLE_MENU_ERROR(779,"分配角色菜单信息失败！"),

    SCHOOL_ADD_ERROR(888,"添加学校信息失败"),
    SCHOOL_DELETE_ERROR(889,"删除学校出现异常"),
    REGIESTER_IMG_ERROR(1000,"注册信息异常");

    private Integer code;

    private  String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    SamEnumVO() {
    }

    SamEnumVO(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
